package com.hsp.abstract_;

public class AbstractDetail02 {
    public static void main(String[] args) {
    new F().hi();
    }
}
abstract class E{
    public abstract void hi();
}

class F extends E{
    @Override
    public void hi() {//所谓实现方法，就是要有方法体
        System.out.println("重写的hi");
    }
}

abstract class D{
    public int n1 =10;
    public static String name = "lsp";
    public void hi(){
        System.out.println("hi");
    }
    public abstract void hello();
    public static void ok(){
        System.out.println("hello");
    }
}